package cre.sample.test.spi;

import java.util.ServiceLoader;

/**
 * @Author penglai
 * @Date 2017/2/7.
 */
public class Demo {
    public static void main(String[] args) {
        ServiceLoader<HelloService> serviceLoader = ServiceLoader.load(HelloService.class);

        for (HelloService service : serviceLoader) {
            service.say();
        }
    }
}
